package website.seamonster.ethegg.utils;

import java.math.BigInteger;

/**
 * Created by 罗海量
 * 2018-08-26 21:52
 */
@lombok.extern.slf4j.Slf4j
public class MyHexUtils {
    private static int accountLength=40;

    public static String convertToAddressString(BigInteger value){
        String str1 = value.toString(16);
        StringBuilder sb = new StringBuilder("0x");
        for(int i=0; i<accountLength - str1.length();i++){
            sb.append("0");
        }
        return sb.append(str1).toString();
    }
}

